<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a="http://richfaces.org/a4j" template="/embed/templateForRegister.xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 

  <ui:define name="topnav">
            <ui:include src="/embed/menu.xhtml">
                <ui:param name="page" value="home" />
            </ui:include>
   </ui:define> 
 
	<ui:define name="body">

		<h:messages globalOnly="true" styleClass="message" />

		<rich:panel>
			<f:facet name="header">取密码</f:facet>

			<h:form id="FecthPasswordForm" styleClass="register">
				<s:validateAll>
					<div class="formRow">
					<h:outputLabel for="username">用户名<em>*</em></h:outputLabel>
					 <h:inputText id="username" value="#{newCustomer.customerName}"
						required="true" />
					<div class="validationError"><h:message for="username" /></div>
					</div>

					<div class="formRow"><h:outputLabel for="email">邮箱<em>*</em>
					</h:outputLabel> <h:inputText id="email" value="#{newCustomer.email}"
						required="true" styleClass="wide" />
					<div class="validationError"><h:message for="email" /></div>
					</div>

					<div class="formRow">
					<h:outputLabel for="question">问题<em>*</em>
					</h:outputLabel>
					 <h:selectOneMenu id="question" value="#{fetchPassword.honorific}">
						<s:selectItems value="#{honorificsFetchPassword}" var="honorific"
							label="#{honorific.label}" />
						<s:convertEnum />
					</h:selectOneMenu></div>
					
					<div class="formRow"><h:outputLabel for="answer">回答<em>*</em>
					</h:outputLabel> <h:inputText id="answer" value="#{newCustomer.answer}"
						required="true" styleClass="wide" />
					<div class="validationError"><h:message for="answer" /></div>
					</div>
					

				</s:validateAll>
				<h:commandButton id="fecthPassword" value="取密码"
					action="#{fetchPassword.fetchPassword}" />

			</h:form>

		</rich:panel>

	</ui:define>

</ui:composition>

